package com.tansun.easycare.rule.common.enums;

public enum RuleModelTypeFileEnum {
    DecisionTable("03", "decisionTable"),
    EvaluationIndex("04", "evaluationDetail"),
    SingleTblIndex("05", "singleTblIndexDetail"),
    ScoreModel("06", "scoreDetail"),
    Exclusions("10", "exclusions"),
	RuleFlow("07", "ruleFlowDetail"),
	StrategyFlow("17", "ruleFlowDetail"),
	DecisionTree("01","decisiontree"),
	PolicyRuleGroup("23","ruleSetList"),
	GeneralRule("21","generalRule"),
	SimpleRuleGroup("24","simpleRuleSetList");
	
    public String type;

    public String fileName;

    RuleModelTypeFileEnum(String type, String fileName) {
        this.type = type;
        this.fileName = fileName;
    }

    public static String getName(String type) {
        for (RuleModelTypeFileEnum c : RuleModelTypeFileEnum.values()) {
            if (c.type.equals(type)) {
                return c.fileName;
            }
        }
        return null;
    }


}
